x86: Use the right error code when testing for spurious pagefaults
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 30 Oct 2008 15:04:27 +0000 (15:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 30 Oct 2008 15:04:27 +0000 (15:04 +0000)
commit4decddb1845ef436e39283f13020d7d5325a8864
treeb11b577a9a7826cf794d55c3cbf0f3151521c2ea
parent85061a016b940fc666e183486d8a91e144509053
x86: Use the right error code when testing for spurious pagefaults

Shadowed PV domains may take pagefaults with PFEC_reserved_bit bit
set, which are then turned into page-not-present faults by the shadow
code. Since that changes the error code in the regs structure, we need
to remember the old error code when we later check for spurious page
faults or we'll get false positives.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/traps.c